package top.hcode.hoj.pojo.entity.course;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import top.hcode.hoj.pojo.entity.problem.Tag;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author orangej
 * @since 2024/12/17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "素材", description = "")
public class Stuff implements Serializable {

    private static final long serialVersionUID = -1670628583206489246L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String title;
    private String stuffType;
    private String uid;
    private Long gid;
    private Long parentId;
    private String fileUrl;
    private Integer fileSize;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    /*关联字段*/
    @TableField(exist = false)
    private List<Tag> tags;
}

